<div id="parallel_table_container">
  <table class="inline_table" id="table1">
    <tr> 
      <th>ID: </th>
      <td><%= @user.id %></td>
    </tr>
    <tr>
      <th>Administrator: </th>
      <td><% display_true_false_field(@user.administrator, {:centered => false }) %></td>
    </tr>
    <tr>
      <th>Validated: </th>
      <td><% display_true_false_field(@user.validated, {:centered => false }) %></td>
    </tr>
    <tr>
      <th>Registered: </th>
      <td><%= @user.created_at.to_formatted_s(:short) %></td>
    </tr>
    <tr>
      <th>Last Update :</th>
      <td><%= @user.updated_at.to_formatted_s(:short) %></td>
    </tr>
  </table>

  <table class="inline_table" id="table2">
    <tr>
      <th></th>
      <th>Vacation</th>
      <th>PC Holiday</th>
    </tr>
    <tr>
      <th># Days Available</th>
      <td><%= pluralize(@user.alloted_vacation_days, 'day') %></td>
      <td><%= pluralize(@user.alloted_pc_days, 'day') %> </td>
    </tr>
    <tr>
      <th># Days Sched</th>
      <td><%= pluralize(@user.num_vacation_days_scheduled, 'day') %></td>
      <td><%= pluralize(@user.num_pc_days_scheduled, 'day') %> </td>
    </tr>
    <tr>
      <th># Days Taken</th>
      <td><%= pluralize(@user.num_vacation_days_taken, 'day') %></td>
      <td><%= pluralize(@user.num_pc_days_taken, 'day') %> </td>
    </tr>
    <tr>
      <th># Days Remaining</th>
      <td><%= pluralize(@user.num_vacation_days_remaining, 'day') %></td>
      <td><%= pluralize(@user.num_pc_days_remaining, 'day') %> </td>
    </tr>
  </table>
</div>
<div style="clear:both;"></div>
<div class="clear"></div>

<% if !@next_event.nil? %>
<br />
<table>
  <tr><th colspan="3">Next Event Details:</th></tr>
  <tr><td>
    <%= event_text_description(@next_event) %>
  </td></tr>
</table>
<% end %>

<% if !@owned_events.nil? && !@owned_events.empty? %>
<h2>Owned Events:</h2>
<%= render :partial => "events_table", :locals => {:events => @owned_events,   :display => "creator"} %>
<%= will_paginate @owned_events, :param_name => :owned_events_page %>
<% end %>

<% if !@created_events.nil? && !@created_events.empty? %>
<h2>Created Events:</h2>
<%= render :partial => "events_table", :locals => {:events => @created_events, :display => "owner"} %>
<%= will_paginate @created_events, :param_name => :created_events_page %>
<% end %>

<br />

<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', users_path %>
